package com.yex.entity.otc;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author Little Liu
 * @since 2018-05-10
 */
@TableName("otc_voucher")
public class OtcVoucher extends Model<OtcVoucher> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键自增
     */
    private Integer id;
    /**
     * 订单id
     */
    private Integer orderId;
    /**
     * 用户id
     */
    private Integer userId;
    /**
     * 上传的凭证图片
     */
    private String img;
    /**
     * 上传凭证时间
     */
    private Date createTime;

    /**
     * 是否删除
     */
    private Integer isDelete;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    
    
    public Integer getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(Integer isDelete) {
		this.isDelete = isDelete;
	}

	@Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "OtcVoucher{" +
        ", id=" + id +
        ", orderId=" + orderId +
        ", userId=" + userId +
        ", img=" + img +
        ", createTime=" + createTime +
        "}";
    }
}
